export function throttle(fn,wait){
    var timer = null;				
    return function(){
        var context = this;
        var args = arguments;
        if(!timer){
            timer = setTimeout(function(){
                fn.apply(context,args);
                timer = null;				//删除该定时器	
            },wait)
        }
    }
}